<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<jsp:directive.page language="java"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>用户信息编辑</title>
		<%@ include file="/commons/includes/head.jspf"%>
		<%@ include file="/commons/manage/content.jspf"%>
		<script type="text/javascript" src="contactsEdit.js"></script>
	</head>
	<body>
		<form name="contactsEdit" method="post" action="contactsEdit.shtml">
			<input type="hidden" id="event" name="event" value="save" />
			<input type="hidden" name="id" value="${form.id}" />
			<div class="contBtnDiv">
				<span class="contBtn contBtnBack" id="btnBack">返 回</span>
				<span class="contBtn contBtnSave" id="btnSave">保 存</span>
				<c:if test="${not empty form.id}">
					<span class="contBtn contBtnNew" id="btnAdd">新 增</span>
					<span class="contBtn contBtnDel" id="btnDel">删 除</span>
				</c:if>
			</div>
			<div class="editDiv">
				<table id="userInfo" style="width: 100%;">
					<tr>
						<td class="label" width="120">
							<font color="red">*</font>&nbsp;名称：
						</td>
						<td>
							<input type="text" class="text required" name="title"
								style="width: 400px;" value="${form.title}" title="名称" />
						</td>
					</tr>
					<tr>
						<td class="label">
							<font color="red">*</font>&nbsp;联系人：
						</td>
						<td>
							<input type="text" class="text required" name="contactPerson"
								style="width: 400px;" value="${form.contactPerson}" title="联系人" />
						</td>
					</tr>
					<tr>
						<td class="label">
							<font color="red">*</font>&nbsp;联系电话：
						</td>
						<td>
							<input type="text" class="text required" name="telephone"
								style="width: 400px;" value="${form.telephone}" title="联系电话" />
						</td>
					</tr>
					<tr>
						<td class="label">
							传真：
						</td>
						<td>
							<input type="text" class="text" name="fax" style="width: 400px;"
								value="${form.fax}" title="传真" />
						</td>
					</tr>
					<tr>
						<td class="label">
							<font color="red">*</font>&nbsp;邮箱：
						</td>
						<td>
							<input type="text" class="text required" name="mail"
								style="width: 400px;" value="${form.mail}" title="邮箱" />
						</td>
					</tr>
					<tr>
						<td class="label">
							<font color="red">*</font>&nbsp;地址：
						</td>
						<td>
							<input type="text" class="text required" name="address"
								style="width: 400px;" value="${form.address}" title="地址" />
						</td>
					</tr>
					<tr>
						<td class="label">
							<font color="red">*</font>&nbsp;邮编：
						</td>
						<td>
							<input type="text" class="text required" name="postCode"
								style="width: 400px;" value="${form.postCode}" title="邮编" />
						</td>
					</tr>
					<tr>
						<td class="label">
							热线：
						</td>
						<td>
							<input type="text" class="text" name="hotLine"
								style="width: 400px;" value="${form.hotLine}" title="热线" />
						</td>
					</tr>
					<tr>
						<td class="label">
							<font color="red">*</font>&nbsp;省份：
						</td>
						<td>
							<select id="province" name="province" title="省份"
								style="width: 150px;" class="required">
								<option value=""></option>
								<c:forEach var="province" items="${provinceMap}">
									<option value="${province.key}"
										${(form.province==province.key)? 'selected=\'selected\'':''}>
										${province.value}
									</option>
								</c:forEach>
							</select>
						</td>
					</tr>
					<tr>
						<td class="label">
							备注：
						</td>
						<td>
							<textarea rows="5" title="备注" name="remarks"
								style="width: 680px;">${form.remarks}</textarea>
						</td>
					</tr>
					<tr>
						<td class="label">
							<font color="red">*</font>&nbsp;排序：
						</td>
						<td>
							<input type="text" class="text required" name="order"
								onkeydown="checkPositiveInteger();" style="width: 400px;"
								value="${form.order}" title="排序" maxlength="5" />
						</td>
					</tr>
				</table>
			</div>
		</form>
	</body>
</html>